/*********************************************************
* All sources in Hellbound are Copyright (c) 2008 Konijn *
* I Konijn, release all code and data under the terms of *
* of the GNU General Public License (version 2), as well *
* as under the traditional Angband license. Distribution *
* is allowed both under the terms of the GPL (version 2) *
* or under the terms of the traditional Angband license. *
*********************************************************/

/*TODO
todo : florentians get discount for sure ( should be in relationship table though )
todo : gipsys should get see invis at level 30.
todo : entire calc_bonuses in xtra1.c
*/

//Global Objects

var races;           //xxx

//Private Objects

//var _yyy;          //xxx

//Initialization

function initRaces(){

  races = new Object();
  races["Human"]   = "Florentian,Gipsy,Nordic,Atlantian,Dwarven Descendant,Elven Descendant,Ogre Descendant,Troll Descendant,Giant Descendant,Titan Descendant,Nephilim,Afflicted".split(",");
  races["Faeries"] = "Seelie Fae,Gnome,Leprechaun,Kobold".split(",");
  races["Spawn"]   = "Spawn,Imp,Succubus,Lilli".split(",");
  races["Elder"]   = "Elder,Guardian,Horror".split(",");
  races.all = races["Human"].concat( races["Faeries"] ).concat( races["Spawn"] ).concat( races["Elder"] );

  races["Florentian"] = { 
    "strength" : 0,
    "intelligence" : 0,
    "wisdom" : 0,
    "dexterity" : 0,
    "constitution" : 0,
    "charisma" : 0,
    "disarming" : 0,
    "wizardry" : 0,
    "occlusion" : 0,
    "alchemy" : 0,
    "appraising" : 0,
    "stealth" : 0,
    "searching" : 0,
    "perception" : 10,
    "combat" : 0,
    "missiles" : 0,
    "hitdice" : 10,
    "experience_rate" : 100,
    "base_age" : 14,
    "mod_age" : 6,
    "base_height_male" : 72,
    "mod_height_weight" : 6,
    "base_weight_male" : 180,
    "mod_weight_male" : 25,
    "base_height_female" : 66,
    "mod_height_female" : 4,
    "base_weight_female" : 150,
    "mod_weight_female" : 20,
    "infravision" : 0,
    "class_choices" : 0x1FFF,
    "eats" : true,
    "undead" : false,
    "fearless" : false,
    "hates_light" : false
  };

  races["Gipsy"] = { 
    "strength" : 0,
    "intelligence" : 0,
    "wisdom" : 0,
    "dexterity" : 1,
    "constitution" : 0,
    "charisma" : 1,
    "disarming" : 5,
    "wizardry" : 4,
    "occlusion" : 4,
    "alchemy" : 4,
    "appraising" : 0,
    "stealth" : 3,
    "searching" : 0,
    "perception" : 10,
    "combat" : 0,
    "missiles" : 0,
    "hitdice" : 10,
    "experience_rate" : 120,
    "base_age" : 14,
    "mod_age" : 6,
    "base_height_male" : 72,
    "mod_height_weight" : 6,
    "base_weight_male" : 180,
    "mod_weight_male" : 25,
    "base_height_female" : 66,
    "mod_height_female" : 4,
    "base_weight_female" : 150,
    "mod_weight_female" : 20,
    "infravision" : 0,
    "class_choices" : 0x1FFF,
    "eats" : true,
    "undead" : false,
    "fearless" : false,
    "hates_light" : false
  };

  races["Nordic"] = { 
    "strength" : 0,
    "intelligence" : 1,
    "wisdom" : 1,
    "dexterity" : 0,
    "constitution" : 0,
    "charisma" : 0,
    "disarming" : 2,
    "wizardry" : 6,
    "occlusion" : 6,
    "alchemy" : 6,
    "appraising" : 1,
    "stealth" : 1,
    "searching" : 1,
    "perception" : 7,
    "combat" : 12,
    "missiles" : 10,
    "hitdice" : 11,
    "experience_rate" : 120,
    "base_age" : 14,
    "mod_age" : 8,
    "base_height_male" : 82,
    "mod_height_weight" : 5,
    "base_weight_male" : 200,
    "mod_weight_male" : 20,
    "base_height_female" : 78,
    "mod_height_female" : 6,
    "base_weight_female" : 190,
    "mod_weight_female" : 15,
    "infravision" : 0,
    "class_choices" : 0x1FFF,
    "eats" : true,
    "undead" : false,
    "fearless" : true,
    "hates_light" : false,
    "resist_fear" : true
  };

  races["Atlantian"] = { 
    "strength" : -1,
    "intelligence" : 3,
    "wisdom" : 2,
    "dexterity" : 2,
    "constitution" : -2,
    "charisma" : 1,
    "disarming" : 5,
    "wizardry" : 18,
    "occlusion" : 18,
    "alchemy" : 18,
    "appraising" : 8,
    "stealth" : 3,
    "searching" : 8,
    "perception" : 12,
    "combat" : -5,
    "missiles" : 10,
    "hitdice" : 9,
    "experience_rate" : 150,
    "base_age" : 75,
    "mod_age" : 75,
    "base_height_male" : 60,
    "mod_height_weight" : 4,
    "base_weight_male" : 100,
    "mod_weight_male" : 6,
    "base_height_female" : 54,
    "mod_height_female" : 4,
    "base_weight_female" : 80,
    "mod_weight_female" : 6,
    "infravision" : 5,
    "class_choices" : 0x1FFF,
    "eats" : true,
    "undead" : false,
    "fearless" : false,
    "hates_light" : false,
    "resist_dark" : true,
    "see_invisible" : 20
  };

  races["Dwarf descendant"] = { 
    "strength" : 1,
    "intelligence" : 1,
    "wisdom" : -1,
    "dexterity" : -1,
    "constitution" : 1,
    "charisma" : -1,
    "disarming" : 2,
    "wizardry" : 10,
    "occlusion" : 10,
    "alchemy" : 10,
    "appraising" : 7,
    "stealth" : -1,
    "searching" : 7,
    "perception" : 10,
    "combat" : 15,
    "missiles" : 0,
    "hitdice" : 11,
    "experience_rate" : 125,
    "base_age" : 35,
    "mod_age" : 15,
    "base_height_male" : 48,
    "mod_height_weight" : 3,
    "base_weight_male" : 150,
    "mod_weight_male" : 10,
    "base_height_female" : 46,
    "mod_height_female" : 3,
    "base_weight_female" : 120,
    "mod_weight_female" : 10,
    "infravision" : 5,
    "class_choices" : 0x1FFF,
    "eats" : true,
    "undead" : false,
    "fearless" : false,
    "hates_light" : false,
    "resist_blindness" : true
  };

  races["Elf descendant"] = { 
    "strength" : -1,
    "intelligence" : 1,
    "wisdom" : 1,
    "dexterity" : 1,
    "constitution" : -1,
    "charisma" : 1,
    "disarming" : 5,
    "wizardry" : 6,
    "occlusion" : 6,
    "alchemy" : 6,
    "appraising" : 8,
    "stealth" : 2,
    "searching" : 8,
    "perception" : 12,
    "combat" : -5,
    "missiles" : 15,
    "hitdice" : 8,
    "experience_rate" : 120,
    "base_age" : 75,
    "mod_age" : 75,
    "base_height_male" : 60,
    "mod_height_weight" : 4,
    "base_weight_male" : 100,
    "mod_weight_male" : 6,
    "base_height_female" : 54,
    "mod_height_female" : 4,
    "base_weight_female" : 80,
    "mod_weight_female" : 6,
    "infravision" : 3,
    "class_choices" : 0x1FFF,
    "eats" : true,
    "undead" : false,
    "fearless" : false,
    "hates_light" : false,
    "resist_light" : true
  };

  races["Ogre descendant"] = { 
    "strength" : 3,
    "intelligence" : -1,
    "wisdom" : -1,
    "dexterity" : -1,
    "constitution" : 3,
    "charisma" : -1,
    "disarming" : -3,
    "wizardry" : -5,
    "occlusion" : -5,
    "alchemy" : -5,
    "appraising" : -1,
    "stealth" : -2,
    "searching" : -1,
    "perception" : 5,
    "combat" : 20,
    "missiles" : 0,
    "hitdice" : 12,
    "experience_rate" : 130,
    "base_age" : 40,
    "mod_age" : 10,
    "base_height_male" : 92,
    "mod_height_weight" : 10,
    "base_weight_male" : 255,
    "mod_weight_male" : 60,
    "base_height_female" : 80,
    "mod_height_female" : 8,
    "base_weight_female" : 235,
    "mod_weight_female" : 60,
    "infravision" : 3,
    "class_choices" : 0x1FFF,
    "eats" : true,
    "undead" : false,
    "fearless" : false,
    "hates_light" : false,
    "resist_dark" : true,
    "sustain_strength" : true
  };

  races["Troll descendant"] = { 
    "strength" : 4,
    "intelligence" : -3,
    "wisdom" : -2,
    "dexterity" : -3,
    "constitution" : 3,
    "charisma" : -2,
    "disarming" : -5,
    "wizardry" : -8,
    "occlusion" : -8,
    "alchemy" : -8,
    "appraising" : -1,
    "stealth" : -2,
    "searching" : -1,
    "perception" : 5,
    "combat" : 20,
    "missiles" : -10,
    "hitdice" : 12,
    "experience_rate" : 137,
    "base_age" : 20,
    "mod_age" : 10,
    "base_height_male" : 96,
    "mod_height_weight" : 10,
    "base_weight_male" : 250,
    "mod_weight_male" : 50,
    "base_height_female" : 84,
    "mod_height_female" : 8,
    "base_weight_female" : 225,
    "mod_weight_female" : 40,
    "infravision" : 3,
    "class_choices" : 0x1FFF,
    "eats" : true,
    "undead" : false,
    "fearless" : false,
    "hates_light" : false,
    "sustain_strength" : true,
    "regenerate" : 15,
    "slow_digestion" : 15
  };

  races["Giant descendant"] = { 
    "strength" : 4,
    "intelligence" : -2,
    "wisdom" : -2,
    "dexterity" : -2,
    "constitution" : 3,
    "charisma" : -3,
    "disarming" : -6,
    "wizardry" : -7,
    "occlusion" : -7,
    "alchemy" : -7,
    "appraising" : -1,
    "stealth" : -2,
    "searching" : -1,
    "perception" : 5,
    "combat" : 25,
    "missiles" : 5,
    "hitdice" : 13,
    "experience_rate" : 150,
    "base_age" : 40,
    "mod_age" : 10,
    "base_height_male" : 100,
    "mod_height_weight" : 10,
    "base_weight_male" : 255,
    "mod_weight_male" : 65,
    "base_height_female" : 80,
    "mod_height_female" : 10,
    "base_weight_female" : 240,
    "mod_weight_female" : 64,
    "infravision" : 3,
    "class_choices" : 0x1FFF,
    "eats" : true,
    "undead" : false,
    "fearless" : false,
    "hates_light" : false,
    "sustain_strength" : true,
    "resist_shards" : true
  };

  races["Titan descendant"] = { 
    "strength" : 5,
    "intelligence" : 1,
    "wisdom" : 1,
    "dexterity" : -2,
    "constitution" : 3,
    "charisma" : 1,
    "disarming" : -5,
    "wizardry" : 4,
    "occlusion" : 4,
    "alchemy" : 4,
    "appraising" : 1,
    "stealth" : -2,
    "searching" : 1,
    "perception" : 8,
    "combat" : 25,
    "missiles" : 0,
    "hitdice" : 14,
    "experience_rate" : 255,
    "base_age" : 100,
    "mod_age" : 30,
    "base_height_male" : 111,
    "mod_height_weight" : 11,
    "base_weight_male" : 255,
    "mod_weight_male" : 86,
    "base_height_female" : 99,
    "mod_height_female" : 11,
    "base_weight_female" : 250,
    "mod_weight_female" : 86,
    "infravision" : 0,
    "class_choices" : 0x1FFF,
    "eats" : true,
    "undead" : false,
    "fearless" : false,
    "hates_light" : false,
    "resist_chaos" : true
  };

  races["Nephilim"] = { 
    "strength" : 1,
    "intelligence" : 2,
    "wisdom" : 2,
    "dexterity" : 2,
    "constitution" : 3,
    "charisma" : 2,
    "disarming" : 4,
    "wizardry" : 5,
    "occlusion" : 5,
    "alchemy" : 5,
    "appraising" : 3,
    "stealth" : 2,
    "searching" : 3,
    "perception" : 13,
    "combat" : 15,
    "missiles" : 10,
    "hitdice" : 10,
    "experience_rate" : 225,
    "base_age" : 50,
    "mod_age" : 50,
    "base_height_male" : 82,
    "mod_height_weight" : 5,
    "base_weight_male" : 190,
    "mod_weight_male" : 20,
    "base_height_female" : 78,
    "mod_height_female" : 6,
    "base_weight_female" : 180,
    "mod_weight_female" : 15,
    "infravision" : 0,
    "class_choices" : 0x1FFF,
    "eats" : true,
    "undead" : false,
    "fearless" : false,
    "hates_light" : false,
    "sustain_constitution" : true,
    "regenerate" : true
  };

  races["Human"] = { 
    "strength" : 1,
    "intelligence" : 2,
    "wisdom" : 2,
    "dexterity" : 2,
    "constitution" : 3,
    "charisma" : 2,
    "disarming" : 4,
    "wizardry" : 5,
    "occlusion" : 5,
    "alchemy" : 5,
    "appraising" : 3,
    "stealth" : 2,
    "searching" : 3,
    "perception" : 13,
    "combat" : 15,
    "missiles" : 10,
    "hitdice" : 10,
    "experience_rate" : 225,
    "base_age" : 50,
    "mod_age" : 50,
    "base_height_male" : 82,
    "mod_height_weight" : 5,
    "base_weight_male" : 190,
    "mod_weight_male" : 20,
    "base_height_female" : 78,
    "mod_height_female" : 6,
    "base_weight_female" : 180,
    "mod_weight_female" : 15,
    "infravision" : 0,
    "class_choices" : 0x1FFF,
    "eats" : true,
    "undead" : false,
    "fearless" : false,
    "hates_light" : false
  };

  races["Seelie Fae"] = { 
    "strength" : -4,
    "intelligence" : 3,
    "wisdom" : 3,
    "dexterity" : 3,
    "constitution" : -2,
    "charisma" : 2,
    "disarming" : 10,
    "wizardry" : 10,
    "occlusion" : 10,
    "alchemy" : 10,
    "appraising" : 10,
    "stealth" : 4,
    "searching" : 10,
    "perception" : 10,
    "combat" : -12,
    "missiles" : 0,
    "hitdice" : 7,
    "experience_rate" : 175,
    "base_age" : 50,
    "mod_age" : 25,
    "base_height_male" : 32,
    "mod_height_weight" : 2,
    "base_weight_male" : 75,
    "mod_weight_male" : 2,
    "base_height_female" : 29,
    "mod_height_female" : 2,
    "base_weight_female" : 65,
    "mod_weight_female" : 2,
    "infravision" : 4,
    "class_choices" : 0x1E5E,
    "eats" : true,
    "undead" : false,
    "fearless" : false,
    "hates_light" : false,
    "free_fall" : true,
    "resist_light" : true
  };

  races["Gnome"] = { 
    "strength" : -1,
    "intelligence" : 2,
    "wisdom" : 0,
    "dexterity" : 2,
    "constitution" : 1,
    "charisma" : -2,
    "disarming" : 10,
    "wizardry" : 12,
    "occlusion" : 12,
    "alchemy" : 12,
    "appraising" : 6,
    "stealth" : 3,
    "searching" : 6,
    "perception" : 13,
    "combat" : -8,
    "missiles" : 12,
    "hitdice" : 8,
    "experience_rate" : 135,
    "base_age" : 50,
    "mod_age" : 40,
    "base_height_male" : 42,
    "mod_height_weight" : 3,
    "base_weight_male" : 90,
    "mod_weight_male" : 6,
    "base_height_female" : 39,
    "mod_height_female" : 3,
    "base_weight_female" : 75,
    "mod_weight_female" : 3,
    "infravision" : 4,
    "class_choices" : 0x1E5E,
    "eats" : true,
    "undead" : false,
    "fearless" : false,
    "hates_light" : false,
    "free_action" : true
  };

  races["Leprechaun"] = { 
    "strength" : -4,
    "intelligence" : 3,
    "wisdom" : 3,
    "dexterity" : 4,
    "constitution" : -4,
    "charisma" : 7,
    "disarming" : 2,
    "wizardry" : 7,
    "occlusion" : 7,
    "alchemy" : 7,
    "appraising" : 5,
    "stealth" : 15,
    "searching" : 5,
    "perception" : 15,
    "combat" : -5,
    "missiles" : -5,
    "hitdice" : 7,
    "experience_rate" : 100,
    "base_age" : 14,
    "mod_age" : 3,
    "base_height_male" : 50,
    "mod_height_weight" : 3,
    "base_weight_male" : 90,
    "mod_weight_male" : 6,
    "base_height_female" : 50,
    "mod_height_female" : 3,
    "base_weight_female" : 75,
    "mod_weight_female" : 3,
    "infravision" : 2,
    "class_choices" : 0x1E5E,
    "eats" : true,
    "undead" : false,
    "fearless" : false,
    "hates_light" : false,
    "free_action" : true
  };

  races["Kobold"] = { 
    "strength" : 1,
    "intelligence" : -1,
    "wisdom" : 0,
    "dexterity" : 1,
    "constitution" : 0,
    "charisma" : -4,
    "disarming" : -2,
    "wizardry" : -2,
    "occlusion" : -2,
    "alchemy" : -2,
    "appraising" : 1,
    "stealth" : -1,
    "searching" : 1,
    "perception" : 8,
    "combat" : 10,
    "missiles" : -8,
    "hitdice" : 9,
    "experience_rate" : 125,
    "base_age" : 11,
    "mod_age" : 3,
    "base_height_male" : 60,
    "mod_height_weight" : 1,
    "base_weight_male" : 130,
    "mod_weight_male" : 5,
    "base_height_female" : 55,
    "mod_height_female" : 1,
    "base_weight_female" : 100,
    "mod_weight_female" : 5,
    "infravision" : 3,
    "class_choices" : 0x0009,
    "eats" : true,
    "undead" : false,
    "fearless" : false,
    "hates_light" : false,
    "resist_poison" : true
  };

  races["Devilspawn"] = { 
    "strength" : 2,
    "intelligence" : -2,
    "wisdom" : -1,
    "dexterity" : -1,
    "constitution" : 2,
    "charisma" : -4,
    "disarming" : -5,
    "wizardry" : -1,
    "occlusion" : -1,
    "alchemy" : -1,
    "appraising" : -1,
    "stealth" : -1,
    "searching" : -1,
    "perception" : 5,
    "combat" : 12,
    "missiles" : 5,
    "hitdice" : 11,
    "experience_rate" : 140,
    "base_age" : 14,
    "mod_age" : 6,
    "base_height_male" : 65,
    "mod_height_weight" : 6,
    "base_weight_male" : 150,
    "mod_weight_male" : 20,
    "base_height_female" : 61,
    "mod_height_female" : 6,
    "base_weight_female" : 120,
    "mod_weight_female" : 15,
    "infravision" : 0,
    "class_choices" : 0x1FFF,
    "eats" : true,
    "undead" : false,
    "fearless" : false,
    "hates_light" : false,
    "resist_confusion" : true,
    "resist_chaos" : true,
    "resist_sound" : true,
    "resist_cold" : true,
    "resist_fire" : true
  };

  races["Imp"] = { 
    "strength" : -1,
    "intelligence" : -1,
    "wisdom" : -1,
    "dexterity" : 1,
    "constitution" : 2,
    "charisma" : -3,
    "disarming" : -3,
    "wizardry" : 1,
    "occlusion" : 1,
    "alchemy" : 1,
    "appraising" : -1,
    "stealth" : 1,
    "searching" : -1,
    "perception" : 10,
    "combat" : 5,
    "missiles" : -5,
    "hitdice" : 10,
    "experience_rate" : 110,
    "base_age" : 13,
    "mod_age" : 4,
    "base_height_male" : 68,
    "mod_height_weight" : 1,
    "base_weight_male" : 150,
    "mod_weight_male" : 5,
    "base_height_female" : 64,
    "mod_height_female" : 1,
    "base_weight_female" : 120,
    "mod_weight_female" : 5,
    "infravision" : 3,
    "class_choices" : 0x1FFF,
    "eats" : true,
    "undead" : false,
    "fearless" : false,
    "hates_light" : false,
    "resist_fire" : true,
    "see_invisible" : 10,
    "immune_fire" : 20
  };

  races["Succubus"] = { 
    "strength" : 0,
    "intelligence" : 2,
    "wisdom" : 0,
    "dexterity" : 2,
    "constitution" : 0,
    "charisma" : 4,
    "disarming" : -5,
    "wizardry" : -1,
    "occlusion" : -1,
    "alchemy" : -1,
    "appraising" : -1,
    "stealth" : -1,
    "searching" : -1,
    "perception" : 5,
    "combat" : 12,
    "missiles" : 5,
    "hitdice" : 11,
    "experience_rate" : 160,
    "base_age" : 14,
    "mod_age" : 6,
    "base_height_male" : 65,
    "mod_height_weight" : 6,
    "base_weight_male" : 150,
    "mod_weight_male" : 20,
    "base_height_female" : 61,
    "mod_height_female" : 6,
    "base_weight_female" : 120,
    "mod_weight_female" : 15,
    "infravision" : 0,
    "class_choices" : 0x1FFF,
    "eats" : true,
    "undead" : false,
    "fearless" : false,
    "hates_light" : false,
    "resist_confusion" : true,
    "resist_chaos" : true,
    "resist_sound" : true,
    "resist_cold" : true,
    "resist_fire" : true
  };

  races["Lili"] = { 
    "strength" : 0,
    "intelligence" : 0,
    "wisdom" : 0,
    "dexterity" : 0,
    "constitution" : 4,
    "charisma" : 4,
    "disarming" : -5,
    "wizardry" : -1,
    "occlusion" : -1,
    "alchemy" : -1,
    "appraising" : -1,
    "stealth" : -1,
    "searching" : -1,
    "perception" : 5,
    "combat" : 12,
    "missiles" : 5,
    "hitdice" : 11,
    "experience_rate" : 160,
    "base_age" : 14,
    "mod_age" : 6,
    "base_height_male" : 65,
    "mod_height_weight" : 6,
    "base_weight_male" : 150,
    "mod_weight_male" : 20,
    "base_height_female" : 61,
    "mod_height_female" : 6,
    "base_weight_female" : 120,
    "mod_weight_female" : 15,
    "infravision" : 0,
    "class_choices" : 0x1FFF,
    "eats" : true,
    "undead" : false,
    "fearless" : false,
    "hates_light" : false,
    "resist_confusion" : true,
    "resist_chaos" : true,
    "resist_sound" : true,
    "resist_cold" : true,
    "resist_fire" : true
  };

  races["Elder"] = { 
    "strength" : 1,
    "intelligence" : 3,
    "wisdom" : 2,
    "dexterity" : 3,
    "constitution" : 1,
    "charisma" : 5,
    "disarming" : 4,
    "wizardry" : 20,
    "occlusion" : 20,
    "alchemy" : 20,
    "appraising" : 3,
    "stealth" : 4,
    "searching" : 3,
    "perception" : 14,
    "combat" : 10,
    "missiles" : 25,
    "hitdice" : 10,
    "experience_rate" : 200,
    "base_age" : 100,
    "mod_age" : 30,
    "base_height_male" : 90,
    "mod_height_weight" : 10,
    "base_weight_male" : 190,
    "mod_weight_male" : 20,
    "base_height_female" : 82,
    "mod_height_female" : 10,
    "base_weight_female" : 180,
    "mod_weight_female" : 15,
    "infravision" : 4,
    "class_choices" : 0x1FFF,
    "eats" : true,
    "undead" : false,
    "fearless" : false,
    "hates_light" : false,
    "sustain_constitution" : true,
    "regenerate" : true,
    "resist_light" : true,
    "see_invisible" : true
  };

  races["Elder Guardian"] = { 
    "strength" : 4,
    "intelligence" : -5,
    "wisdom" : -5,
    "dexterity" : 0,
    "constitution" : 4,
    "charisma" : -4,
    "disarming" : -5,
    "wizardry" : 3,
    "occlusion" : 3,
    "alchemy" : 3,
    "appraising" : -1,
    "stealth" : -1,
    "searching" : -1,
    "perception" : 8,
    "combat" : 20,
    "missiles" : 0,
    "hitdice" : 12,
    "experience_rate" : 200,
    "base_age" : 1,
    "mod_age" : 100,
    "base_height_male" : 66,
    "mod_height_weight" : 1,
    "base_weight_male" : 200,
    "mod_weight_male" : 6,
    "base_height_female" : 62,
    "mod_height_female" : 1,
    "base_weight_female" : 180,
    "mod_weight_female" : 6,
    "infravision" : 4,
    "class_choices" : 0x0001,
    "eats" : false,
    "undead" : false,
    "fearless" : true,
    "hates_light" : false,
    "slow_digestion" : true,
    "free_action" : true,
    "see_invisible" : true,
    "resist_poison" : true,
    "hold_life" : 35
  };

  races["Elder Horror"] = { 
    "strength" : -3,
    "intelligence" : 4,
    "wisdom" : 4,
    "dexterity" : 0,
    "constitution" : -2,
    "charisma" : -5,
    "disarming" : 10,
    "wizardry" : 20,
    "occlusion" : 20,
    "alchemy" : 20,
    "appraising" : 5,
    "stealth" : 2,
    "searching" : 5,
    "perception" : 12,
    "combat" : -10,
    "missiles" : -5,
    "hitdice" : 9,
    "experience_rate" : 140,
    "base_age" : 100,
    "mod_age" : 25,
    "base_height_male" : 68,
    "mod_height_weight" : 6,
    "base_weight_male" : 142,
    "mod_weight_male" : 15,
    "base_height_female" : 63,
    "mod_height_female" : 6,
    "base_weight_female" : 112,
    "mod_weight_female" : 10,
    "infravision" : 4,
    "class_choices" : 0x1746,
    "eats" : true,
    "undead" : false,
    "fearless" : false,
    "hates_light" : false,
    "sustain_intelligence" : true,
    "sustain_wisdom" : true,
    "see_invisible" : 15,
    "telepathy" : 30
  };

  races["Vampire"] = { 
    "strength" : 3,
    "intelligence" : 3,
    "wisdom" : -1,
    "dexterity" : -1,
    "constitution" : 1,
    "charisma" : 2,
    "disarming" : 4,
    "wizardry" : 10,
    "occlusion" : 10,
    "alchemy" : 10,
    "appraising" : 1,
    "stealth" : 4,
    "searching" : 1,
    "perception" : 8,
    "combat" : 5,
    "missiles" : 0,
    "hitdice" : 11,
    "experience_rate" : 200,
    "base_age" : 100,
    "mod_age" : 30,
    "base_height_male" : 72,
    "mod_height_weight" : 6,
    "base_weight_male" : 180,
    "mod_weight_male" : 25,
    "base_height_female" : 66,
    "mod_height_female" : 4,
    "base_weight_female" : 150,
    "mod_weight_female" : 20,
    "infravision" : 5,
    "class_choices" : 0x1FFF,
    "eats" : false,
    "undead" : true,
    "fearless" : false,
    "hates_light" : true,
    "resist_dark" : true,
    "hold_life" : true,
    "resist_nether" : true,
    "resist_cold" : true,
    "resist_poison" : true,
    "light_hurts" : true
  };

  races["Werewolf"] = { 
    "strength" : 3,
    "intelligence" : 3,
    "wisdom" : -1,
    "dexterity" : -1,
    "constitution" : 1,
    "charisma" : 2,
    "disarming" : 4,
    "wizardry" : 10,
    "occlusion" : 10,
    "alchemy" : 10,
    "appraising" : 1,
    "stealth" : 4,
    "searching" : 1,
    "perception" : 8,
    "combat" : 5,
    "missiles" : 0,
    "hitdice" : 11,
    "experience_rate" : 200,
    "base_age" : 100,
    "mod_age" : 30,
    "base_height_male" : 72,
    "mod_height_weight" : 6,
    "base_weight_male" : 180,
    "mod_weight_male" : 25,
    "base_height_female" : 66,
    "mod_height_female" : 4,
    "base_weight_female" : 150,
    "mod_weight_female" : 20,
    "infravision" : 5,
    "class_choices" : 0x1FFF,
    "eats" : true,
    "undead" : false,
    "fearless" : false,
    "hates_light" : false
  };

  races["Skeleton"] = { 
    "strength" : 0,
    "intelligence" : -2,
    "wisdom" : -2,
    "dexterity" : 0,
    "constitution" : 1,
    "charisma" : -4,
    "disarming" : -5,
    "wizardry" : 0,
    "occlusion" : 0,
    "alchemy" : 0,
    "appraising" : -1,
    "stealth" : -1,
    "searching" : -1,
    "perception" : 8,
    "combat" : 10,
    "missiles" : 0,
    "hitdice" : 10,
    "experience_rate" : 145,
    "base_age" : 100,
    "mod_age" : 35,
    "base_height_male" : 72,
    "mod_height_weight" : 6,
    "base_weight_male" : 50,
    "mod_weight_male" : 5,
    "base_height_female" : 66,
    "mod_height_female" : 4,
    "base_weight_female" : 50,
    "mod_weight_female" : 5,
    "infravision" : 2,
    "class_choices" : 0x1F0F,
    "eats" : false,
    "undead" : false,
    "fearless" : false,
    "hates_light" : false,
    "resist_shards" : true,
    "hold_life" : true,
    "see_invisible" : true,
    "resist_poison" : true,
    "resist_cold" : 10
  };

  races["Mummy"] = { 
    "strength" : 2,
    "intelligence" : -6,
    "wisdom" : -6,
    "dexterity" : 1,
    "constitution" : 4,
    "charisma" : -5,
    "disarming" : -5,
    "wizardry" : 2,
    "occlusion" : 2,
    "alchemy" : 2,
    "appraising" : -1,
    "stealth" : -1,
    "searching" : -1,
    "perception" : 5,
    "combat" : 15,
    "missiles" : 0,
    "hitdice" : 13,
    "experience_rate" : 135,
    "base_age" : 100,
    "mod_age" : 30,
    "base_height_male" : 72,
    "mod_height_weight" : 6,
    "base_weight_male" : 100,
    "mod_weight_male" : 25,
    "base_height_female" : 66,
    "mod_height_female" : 4,
    "base_weight_female" : 100,
    "mod_weight_female" : 20,
    "infravision" : 2,
    "class_choices" : 0x0001,
    "eats" : false,
    "undead" : true,
    "fearless" : false,
    "hates_light" : false,
    "resist_nether" : true,
    "hold_life" : true,
    "see_invisible" : true,
    "resist_poison" : true,
    "slow_digestion" : true,
    "resist_cold" : 5
  };

  races["Spectre"] = { 
    "strength" : -5,
    "intelligence" : 4,
    "wisdom" : 4,
    "dexterity" : 2,
    "constitution" : -3,
    "charisma" : -6,
    "disarming" : 10,
    "wizardry" : 23,
    "occlusion" : 23,
    "alchemy" : 23,
    "appraising" : 5,
    "stealth" : 5,
    "searching" : 5,
    "perception" : 14,
    "combat" : -15,
    "missiles" : -5,
    "hitdice" : 7,
    "experience_rate" : 180,
    "base_age" : 100,
    "mod_age" : 30,
    "base_height_male" : 72,
    "mod_height_weight" : 6,
    "base_weight_male" : 100,
    "mod_weight_male" : 25,
    "base_height_female" : 66,
    "mod_height_female" : 4,
    "base_weight_female" : 100,
    "mod_weight_female" : 20,
    "infravision" : 5,
    "class_choices" : 0x1F4E,
    "eats" : false,
    "undead" : true,
    "fearless" : false,
    "hates_light" : false,
    "resist_nether" : true,
    "hold_life" : true,
    "see_invisible" : true,
    "resist_poison" : true,
    "slow_digestion" : true,
    "resist_cold" : true,
    "light_hurts" : true,
    "telepathy" : 35
  };

}
//Public Functions

//function doXXX(){}

//Private Functions

//function doYYY(){}

